<!DOCTYPE html>
<html>
<head>
    <title>{:lang('全民赚钱')}</title>
    <include file="appapi@head"/>
    <link href='__STATIC__/appapi/css/agent.css' type="text/css" rel="stylesheet">
</head>
<body class="{:lang('agent_body_index')}">
    <div class="agent">

        <div class="agent_code_top">
            <div class="title">
                <div class="title_l">
                    
                </div>
                <div class="title_r">
                    {:lang('您的邀请码')}
                </div>
                <div class="clear_both"></div>
                <div class="agent_top_arrow"><img src="__STATIC__/appapi/images/agent/agent_top_arrow.png" /></div>
            </div>
            <div class="desc">YOUR INVITATION CODE</div>
        </div>
        <div class="agent_code">
            <div class="agent_code_t">
                
            </div>
            <div class="agent_code_b">
                <volist name="code_a" id="v">
                    <span>{$v}</span>
                </volist>
            </div>
            <div class="agent_code_c">
                <a href="copy://{$code}">{:lang('点击复制')}</a>
            </div>
        </div>
		
        <div class="agent_icon"><img src="__STATIC__/appapi/images/agent/xem.png" /></div>
		
		<div class="agent_top">
			<div class="myagent">
                <span class="li_l">{:lang('我的上级')}</span>
				<if condition="$agentinfo">
                    <span class="li_r">{$agentinfo['user_nickname']}</span>
				<else/>
                    <a class="li_r" href="/appapi/Agent/agent?uid={$uid}&token={$token}&lang={$language}">{:lang('去设置')}</a>
				</if>
			</div>
		</div>
		
        <div class="agent_step">
            {:lang('分享APP')} <img src="__STATIC__/appapi/images/agent/arrow_r.png"> {:lang('用户注册')} <img src="__STATIC__/appapi/images/agent/arrow_r.png"> {:lang('充值体验')} <img src="__STATIC__/appapi/images/agent/arrow_r.png"> {:lang('收益到账')}
        </div>
        <div class="agent_info">
            <div class="agent_info_bd">
                <div class="agent_info_bd_tab">
                    <p>{:lang('我的分享')} | <span>SHARE</span></p>
                </div>
                <div class="agent_info_bd_list clearfix">
                    <ul>
                        <li>
                            <a href="/appapi/agent/one?uid={$uid}&token={$token}&lang={$language}">
                            <div class="li_icon">
                                <img src="__STATIC__/appapi/images/agent/icon1.png">
                            </div>
                            <div class="li_t">
                                {:lang('一级好友')}
                            </div>
                            <div class="li_d">
                                ( {$one_nums}{:lang('人')} )
                            </div>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="agent_explain">
            <div class="agent_explain_tips">
                <p>{:lang('攻略说明')} | <span>STRATEGY</span></p>
            </div>
            <div class="agent_explain_bd">
                <div class="share_explain_bd_t">
                    {:lang('级级有收益')}
                </div>
                <div class="share_explain_bd_chart">
                    <img src="__STATIC__/appapi/images/agent/{:lang('agent_profit_char')}.png">
                </div>
                <div class="share_explain_bd_chart2">
                    {:lang('分享收益表')}
                </div>
                <div class="share_explain_bd_d">
                    <table>
                        <tr>
                            <td>{:lang('奖金比例')}</td>
                            <td>{:lang('一级好友')}</td>
                        </tr>
                        <tr>
                            <td>{:lang('充值')}{$config['name_coin']}</td>
                            <td>{$agent_one}%</td>
                        </tr>
                    </table>
                </div>
            </div>
            
        </div>
        <div class="share_explain">
            <div class="agent_explain_tips">
                <p>{:lang('分享说明')} | <span>SHARE</span></p>
            </div>
            <div class="share_explain_bd">
                <div class="share_explain_bd_t">
                    {:lang("以充值100name_coin为例说明",['name_coin'=>$config['name_coin']])}
                </div>
                <div class="share_explain_bd_d">
                    <p>{:lang('一级好友充值100name_coin，你可获得agent_one-name_votes提成；',['name_coin'=>$config['name_coin'],'agent_one'=>$agent_one,'name_votes'=>$config['name_votes']])}</p>
                    <p>{:lang('每邀请一个新人奖励')} {$agent_reward}{$config['name_votes']}；</p>

                </div>
            </div>
        </div>

        <div class="share">
            <a href="shareagent://{$code}"><div class="share_btn">
                {:lang('分享赚钱')}
            </div></a>
        </div>
    </div>
    
    <include file="appapi@footer"/>
    <include file="appapi@scripts"/>
</body>
</html>
